#include <stdio.h>

#include "stream.h"

void stream_create (Stream *s)
{
  s->write = stream_write;
  s->read = stream_read;
  s->seek = stream_seek;
  s->pos = stream_pos;
  s->size = stream_size;
  s->close = stream_close;
}

void stream_write (Stream *s, void *a, int b)
{
  fprintf (stderr, "write not implemented in stream\n");
}

int stream_read (Stream *s, void *a, int b, int c)
{
  fprintf (stderr, "read not implemented in stream\n");
  return 0;
}

void stream_seek (Stream *s, int a, SeekWhence b)
{
  fprintf (stderr, "seek not implemented in stream\n");
}

int stream_pos (Stream *s)
{
  fprintf (stderr, "pos not implemented in stream\n");
  return 0;
}

int stream_size (Stream *s)
{
  fprintf (stderr, "size not implemented in stream\n");
  return 0;
}

void stream_close (Stream *s)
{
  fprintf (stderr, "close not implemented in stream\n");
}
